#ifndef TABLEDATASOURCE_H
#define TABLEDATASOURCE_H

#include <QAbstractTableModel>
#include <QVector>

class TableDataSource : public QAbstractTableModel
{
	Q_OBJECT

	public:
		TableDataSource(QObject *parent);
		~TableDataSource();

		virtual int rowCount(const QModelIndex &parent /* = QModelIndex */) const;
		virtual int columnCount(const QModelIndex &parent /* = QModelIndex */) const;
		virtual QVariant data(const QModelIndex &index, int role /* = Qt::DisplayRole */) const;
		virtual QVariant headerData(int section, Qt::Orientation orientation, int role /* = Qt::DisplayRole */) const;

		void addEntry(QString& filename, QString& operation, QString& time, QString& bitrate);
	private:
		QVector<QString> tableData;
};

#endif // TABLEDATASOURCE_H
